package zifuchuan

func ReverseStr(s string, k int) string {
	k2 := k * 2
	key := []byte(s)
	n := len(key)

	for i := 0; i < n; i += k2 {
		end := i + k
		if end > n {
			end = n
		}
	}
	return string(key)
}
